package edu.olin.scheduler.common.unserialize;

//odd code snippets go here
public class CodeFragments {
    
//the graveyard; this stuff should go somewhere eventually
//for now, just leave it be

    
/* Time unserialization 
 * Annie Martin, April 2006
 * This was removed from the Course constructor on 2007.apr.15 by JStanton
 *     Reason: Constructor does not need to know about serialization
 * TODO: Make this a class for parsing a single Serialized meeting
      //times are in form "M12001350" for Monday from noon to one fifty.
         courseName=name;
         myCategory=cat;
         meetings=new ArrayList();
         for(int i=0; i<times.length;i++)
         {
            int timestart=Integer.parseInt(times[i].substring(1,5));
            int timestop =Integer.parseInt(times[i].substring(5,8));
            int day=-1;
            if (times[i].substring(0,1).equals("O"))
            {
               day=0;
            }
            else if (times[i].substring(0,1).equals("M"))
            {
               day=1;
            }
            else if (times[i].substring(0,1).equals("T"))
            {
               day=2;
            }
            else if (times[i].substring(0,1).equals("W"))
            {
               day=3;
            }
            else if (times[i].substring(0,1).equals("R"))
            {
               day=4;
            }
            else if (times[i].substring(0,1).equals("F"))
            {
               day=5;
            }
            else if (times[i].substring(0,1).equals("S"))
            {
               day=6;
            }
            meetings.add(new Meeting(this,day,new SimpleTime(timestart),new SimpleTime(timestop)));
         }
 */
    
}
